import http from '@http/http'
export const getUsers = (pageinfo) => http.GET('api/admin/users', {
  'content': pageinfo.content,
  'page': pageinfo.page,
  'size': pageinfo.size
})

export const updateUser = (user) => http.PUT('api/admin/user', user)
export const deleteUser = (id) => http.DELETE('api/admin/' + id)
export const addUser = (user) => http.POST('/api/admin/user', user)
